package org.cskt.sl.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TenSettlementExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TenSettlementExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTsidIsNull() {
            addCriterion("tsid is null");
            return (Criteria) this;
        }

        public Criteria andTsidIsNotNull() {
            addCriterion("tsid is not null");
            return (Criteria) this;
        }

        public Criteria andTsidEqualTo(Integer value) {
            addCriterion("tsid =", value, "tsid");
            return (Criteria) this;
        }

        public Criteria andTsidNotEqualTo(Integer value) {
            addCriterion("tsid <>", value, "tsid");
            return (Criteria) this;
        }

        public Criteria andTsidGreaterThan(Integer value) {
            addCriterion("tsid >", value, "tsid");
            return (Criteria) this;
        }

        public Criteria andTsidGreaterThanOrEqualTo(Integer value) {
            addCriterion("tsid >=", value, "tsid");
            return (Criteria) this;
        }

        public Criteria andTsidLessThan(Integer value) {
            addCriterion("tsid <", value, "tsid");
            return (Criteria) this;
        }

        public Criteria andTsidLessThanOrEqualTo(Integer value) {
            addCriterion("tsid <=", value, "tsid");
            return (Criteria) this;
        }

        public Criteria andTsidIn(List<Integer> values) {
            addCriterion("tsid in", values, "tsid");
            return (Criteria) this;
        }

        public Criteria andTsidNotIn(List<Integer> values) {
            addCriterion("tsid not in", values, "tsid");
            return (Criteria) this;
        }

        public Criteria andTsidBetween(Integer value1, Integer value2) {
            addCriterion("tsid between", value1, value2, "tsid");
            return (Criteria) this;
        }

        public Criteria andTsidNotBetween(Integer value1, Integer value2) {
            addCriterion("tsid not between", value1, value2, "tsid");
            return (Criteria) this;
        }

        public Criteria andDateIsNull() {
            addCriterion("date is null");
            return (Criteria) this;
        }

        public Criteria andDateIsNotNull() {
            addCriterion("date is not null");
            return (Criteria) this;
        }

        public Criteria andDateEqualTo(Date value) {
            addCriterion("date =", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotEqualTo(Date value) {
            addCriterion("date <>", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThan(Date value) {
            addCriterion("date >", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThanOrEqualTo(Date value) {
            addCriterion("date >=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThan(Date value) {
            addCriterion("date <", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThanOrEqualTo(Date value) {
            addCriterion("date <=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateIn(List<Date> values) {
            addCriterion("date in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotIn(List<Date> values) {
            addCriterion("date not in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateBetween(Date value1, Date value2) {
            addCriterion("date between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotBetween(Date value1, Date value2) {
            addCriterion("date not between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andRecommendIsNull() {
            addCriterion("recommend is null");
            return (Criteria) this;
        }

        public Criteria andRecommendIsNotNull() {
            addCriterion("recommend is not null");
            return (Criteria) this;
        }

        public Criteria andRecommendEqualTo(Float value) {
            addCriterion("recommend =", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendNotEqualTo(Float value) {
            addCriterion("recommend <>", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendGreaterThan(Float value) {
            addCriterion("recommend >", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendGreaterThanOrEqualTo(Float value) {
            addCriterion("recommend >=", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendLessThan(Float value) {
            addCriterion("recommend <", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendLessThanOrEqualTo(Float value) {
            addCriterion("recommend <=", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendIn(List<Float> values) {
            addCriterion("recommend in", values, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendNotIn(List<Float> values) {
            addCriterion("recommend not in", values, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendBetween(Float value1, Float value2) {
            addCriterion("recommend between", value1, value2, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendNotBetween(Float value1, Float value2) {
            addCriterion("recommend not between", value1, value2, "recommend");
            return (Criteria) this;
        }

        public Criteria andTouchboardIsNull() {
            addCriterion("Touchboard is null");
            return (Criteria) this;
        }

        public Criteria andTouchboardIsNotNull() {
            addCriterion("Touchboard is not null");
            return (Criteria) this;
        }

        public Criteria andTouchboardEqualTo(Integer value) {
            addCriterion("Touchboard =", value, "touchboard");
            return (Criteria) this;
        }

        public Criteria andTouchboardNotEqualTo(Integer value) {
            addCriterion("Touchboard <>", value, "touchboard");
            return (Criteria) this;
        }

        public Criteria andTouchboardGreaterThan(Integer value) {
            addCriterion("Touchboard >", value, "touchboard");
            return (Criteria) this;
        }

        public Criteria andTouchboardGreaterThanOrEqualTo(Integer value) {
            addCriterion("Touchboard >=", value, "touchboard");
            return (Criteria) this;
        }

        public Criteria andTouchboardLessThan(Integer value) {
            addCriterion("Touchboard <", value, "touchboard");
            return (Criteria) this;
        }

        public Criteria andTouchboardLessThanOrEqualTo(Integer value) {
            addCriterion("Touchboard <=", value, "touchboard");
            return (Criteria) this;
        }

        public Criteria andTouchboardIn(List<Integer> values) {
            addCriterion("Touchboard in", values, "touchboard");
            return (Criteria) this;
        }

        public Criteria andTouchboardNotIn(List<Integer> values) {
            addCriterion("Touchboard not in", values, "touchboard");
            return (Criteria) this;
        }

        public Criteria andTouchboardBetween(Integer value1, Integer value2) {
            addCriterion("Touchboard between", value1, value2, "touchboard");
            return (Criteria) this;
        }

        public Criteria andTouchboardNotBetween(Integer value1, Integer value2) {
            addCriterion("Touchboard not between", value1, value2, "touchboard");
            return (Criteria) this;
        }

        public Criteria andLeftsumIsNull() {
            addCriterion("leftsum is null");
            return (Criteria) this;
        }

        public Criteria andLeftsumIsNotNull() {
            addCriterion("leftsum is not null");
            return (Criteria) this;
        }

        public Criteria andLeftsumEqualTo(Integer value) {
            addCriterion("leftsum =", value, "leftsum");
            return (Criteria) this;
        }

        public Criteria andLeftsumNotEqualTo(Integer value) {
            addCriterion("leftsum <>", value, "leftsum");
            return (Criteria) this;
        }

        public Criteria andLeftsumGreaterThan(Integer value) {
            addCriterion("leftsum >", value, "leftsum");
            return (Criteria) this;
        }

        public Criteria andLeftsumGreaterThanOrEqualTo(Integer value) {
            addCriterion("leftsum >=", value, "leftsum");
            return (Criteria) this;
        }

        public Criteria andLeftsumLessThan(Integer value) {
            addCriterion("leftsum <", value, "leftsum");
            return (Criteria) this;
        }

        public Criteria andLeftsumLessThanOrEqualTo(Integer value) {
            addCriterion("leftsum <=", value, "leftsum");
            return (Criteria) this;
        }

        public Criteria andLeftsumIn(List<Integer> values) {
            addCriterion("leftsum in", values, "leftsum");
            return (Criteria) this;
        }

        public Criteria andLeftsumNotIn(List<Integer> values) {
            addCriterion("leftsum not in", values, "leftsum");
            return (Criteria) this;
        }

        public Criteria andLeftsumBetween(Integer value1, Integer value2) {
            addCriterion("leftsum between", value1, value2, "leftsum");
            return (Criteria) this;
        }

        public Criteria andLeftsumNotBetween(Integer value1, Integer value2) {
            addCriterion("leftsum not between", value1, value2, "leftsum");
            return (Criteria) this;
        }

        public Criteria andLeftnewIsNull() {
            addCriterion("leftnew is null");
            return (Criteria) this;
        }

        public Criteria andLeftnewIsNotNull() {
            addCriterion("leftnew is not null");
            return (Criteria) this;
        }

        public Criteria andLeftnewEqualTo(Integer value) {
            addCriterion("leftnew =", value, "leftnew");
            return (Criteria) this;
        }

        public Criteria andLeftnewNotEqualTo(Integer value) {
            addCriterion("leftnew <>", value, "leftnew");
            return (Criteria) this;
        }

        public Criteria andLeftnewGreaterThan(Integer value) {
            addCriterion("leftnew >", value, "leftnew");
            return (Criteria) this;
        }

        public Criteria andLeftnewGreaterThanOrEqualTo(Integer value) {
            addCriterion("leftnew >=", value, "leftnew");
            return (Criteria) this;
        }

        public Criteria andLeftnewLessThan(Integer value) {
            addCriterion("leftnew <", value, "leftnew");
            return (Criteria) this;
        }

        public Criteria andLeftnewLessThanOrEqualTo(Integer value) {
            addCriterion("leftnew <=", value, "leftnew");
            return (Criteria) this;
        }

        public Criteria andLeftnewIn(List<Integer> values) {
            addCriterion("leftnew in", values, "leftnew");
            return (Criteria) this;
        }

        public Criteria andLeftnewNotIn(List<Integer> values) {
            addCriterion("leftnew not in", values, "leftnew");
            return (Criteria) this;
        }

        public Criteria andLeftnewBetween(Integer value1, Integer value2) {
            addCriterion("leftnew between", value1, value2, "leftnew");
            return (Criteria) this;
        }

        public Criteria andLeftnewNotBetween(Integer value1, Integer value2) {
            addCriterion("leftnew not between", value1, value2, "leftnew");
            return (Criteria) this;
        }

        public Criteria andLeftresidueIsNull() {
            addCriterion("leftresidue is null");
            return (Criteria) this;
        }

        public Criteria andLeftresidueIsNotNull() {
            addCriterion("leftresidue is not null");
            return (Criteria) this;
        }

        public Criteria andLeftresidueEqualTo(Integer value) {
            addCriterion("leftresidue =", value, "leftresidue");
            return (Criteria) this;
        }

        public Criteria andLeftresidueNotEqualTo(Integer value) {
            addCriterion("leftresidue <>", value, "leftresidue");
            return (Criteria) this;
        }

        public Criteria andLeftresidueGreaterThan(Integer value) {
            addCriterion("leftresidue >", value, "leftresidue");
            return (Criteria) this;
        }

        public Criteria andLeftresidueGreaterThanOrEqualTo(Integer value) {
            addCriterion("leftresidue >=", value, "leftresidue");
            return (Criteria) this;
        }

        public Criteria andLeftresidueLessThan(Integer value) {
            addCriterion("leftresidue <", value, "leftresidue");
            return (Criteria) this;
        }

        public Criteria andLeftresidueLessThanOrEqualTo(Integer value) {
            addCriterion("leftresidue <=", value, "leftresidue");
            return (Criteria) this;
        }

        public Criteria andLeftresidueIn(List<Integer> values) {
            addCriterion("leftresidue in", values, "leftresidue");
            return (Criteria) this;
        }

        public Criteria andLeftresidueNotIn(List<Integer> values) {
            addCriterion("leftresidue not in", values, "leftresidue");
            return (Criteria) this;
        }

        public Criteria andLeftresidueBetween(Integer value1, Integer value2) {
            addCriterion("leftresidue between", value1, value2, "leftresidue");
            return (Criteria) this;
        }

        public Criteria andLeftresidueNotBetween(Integer value1, Integer value2) {
            addCriterion("leftresidue not between", value1, value2, "leftresidue");
            return (Criteria) this;
        }

        public Criteria andRightsumIsNull() {
            addCriterion("rightsum is null");
            return (Criteria) this;
        }

        public Criteria andRightsumIsNotNull() {
            addCriterion("rightsum is not null");
            return (Criteria) this;
        }

        public Criteria andRightsumEqualTo(Integer value) {
            addCriterion("rightsum =", value, "rightsum");
            return (Criteria) this;
        }

        public Criteria andRightsumNotEqualTo(Integer value) {
            addCriterion("rightsum <>", value, "rightsum");
            return (Criteria) this;
        }

        public Criteria andRightsumGreaterThan(Integer value) {
            addCriterion("rightsum >", value, "rightsum");
            return (Criteria) this;
        }

        public Criteria andRightsumGreaterThanOrEqualTo(Integer value) {
            addCriterion("rightsum >=", value, "rightsum");
            return (Criteria) this;
        }

        public Criteria andRightsumLessThan(Integer value) {
            addCriterion("rightsum <", value, "rightsum");
            return (Criteria) this;
        }

        public Criteria andRightsumLessThanOrEqualTo(Integer value) {
            addCriterion("rightsum <=", value, "rightsum");
            return (Criteria) this;
        }

        public Criteria andRightsumIn(List<Integer> values) {
            addCriterion("rightsum in", values, "rightsum");
            return (Criteria) this;
        }

        public Criteria andRightsumNotIn(List<Integer> values) {
            addCriterion("rightsum not in", values, "rightsum");
            return (Criteria) this;
        }

        public Criteria andRightsumBetween(Integer value1, Integer value2) {
            addCriterion("rightsum between", value1, value2, "rightsum");
            return (Criteria) this;
        }

        public Criteria andRightsumNotBetween(Integer value1, Integer value2) {
            addCriterion("rightsum not between", value1, value2, "rightsum");
            return (Criteria) this;
        }

        public Criteria andRightnewIsNull() {
            addCriterion("rightnew is null");
            return (Criteria) this;
        }

        public Criteria andRightnewIsNotNull() {
            addCriterion("rightnew is not null");
            return (Criteria) this;
        }

        public Criteria andRightnewEqualTo(Integer value) {
            addCriterion("rightnew =", value, "rightnew");
            return (Criteria) this;
        }

        public Criteria andRightnewNotEqualTo(Integer value) {
            addCriterion("rightnew <>", value, "rightnew");
            return (Criteria) this;
        }

        public Criteria andRightnewGreaterThan(Integer value) {
            addCriterion("rightnew >", value, "rightnew");
            return (Criteria) this;
        }

        public Criteria andRightnewGreaterThanOrEqualTo(Integer value) {
            addCriterion("rightnew >=", value, "rightnew");
            return (Criteria) this;
        }

        public Criteria andRightnewLessThan(Integer value) {
            addCriterion("rightnew <", value, "rightnew");
            return (Criteria) this;
        }

        public Criteria andRightnewLessThanOrEqualTo(Integer value) {
            addCriterion("rightnew <=", value, "rightnew");
            return (Criteria) this;
        }

        public Criteria andRightnewIn(List<Integer> values) {
            addCriterion("rightnew in", values, "rightnew");
            return (Criteria) this;
        }

        public Criteria andRightnewNotIn(List<Integer> values) {
            addCriterion("rightnew not in", values, "rightnew");
            return (Criteria) this;
        }

        public Criteria andRightnewBetween(Integer value1, Integer value2) {
            addCriterion("rightnew between", value1, value2, "rightnew");
            return (Criteria) this;
        }

        public Criteria andRightnewNotBetween(Integer value1, Integer value2) {
            addCriterion("rightnew not between", value1, value2, "rightnew");
            return (Criteria) this;
        }

        public Criteria andRightresidueIsNull() {
            addCriterion("rightresidue is null");
            return (Criteria) this;
        }

        public Criteria andRightresidueIsNotNull() {
            addCriterion("rightresidue is not null");
            return (Criteria) this;
        }

        public Criteria andRightresidueEqualTo(Integer value) {
            addCriterion("rightresidue =", value, "rightresidue");
            return (Criteria) this;
        }

        public Criteria andRightresidueNotEqualTo(Integer value) {
            addCriterion("rightresidue <>", value, "rightresidue");
            return (Criteria) this;
        }

        public Criteria andRightresidueGreaterThan(Integer value) {
            addCriterion("rightresidue >", value, "rightresidue");
            return (Criteria) this;
        }

        public Criteria andRightresidueGreaterThanOrEqualTo(Integer value) {
            addCriterion("rightresidue >=", value, "rightresidue");
            return (Criteria) this;
        }

        public Criteria andRightresidueLessThan(Integer value) {
            addCriterion("rightresidue <", value, "rightresidue");
            return (Criteria) this;
        }

        public Criteria andRightresidueLessThanOrEqualTo(Integer value) {
            addCriterion("rightresidue <=", value, "rightresidue");
            return (Criteria) this;
        }

        public Criteria andRightresidueIn(List<Integer> values) {
            addCriterion("rightresidue in", values, "rightresidue");
            return (Criteria) this;
        }

        public Criteria andRightresidueNotIn(List<Integer> values) {
            addCriterion("rightresidue not in", values, "rightresidue");
            return (Criteria) this;
        }

        public Criteria andRightresidueBetween(Integer value1, Integer value2) {
            addCriterion("rightresidue between", value1, value2, "rightresidue");
            return (Criteria) this;
        }

        public Criteria andRightresidueNotBetween(Integer value1, Integer value2) {
            addCriterion("rightresidue not between", value1, value2, "rightresidue");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userid is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userid is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userid =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userid <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userid >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userid >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userid <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userid <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userid in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userid not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userid between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userid not between", value1, value2, "userid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}